#!/usr/bin/python

import os

accum = ""
print "#!/usr/bin/python"
print "import os\n"
for i in range(1,4):
	tgt = "f%d" % i
	fn = "f%d.h" % i
	print "@rule(deps = "+str(accum.split())+")"
	print "def %s:" % tgt
	print "\tos.system('touch %s')\n" % fn
	accum += tgt+" "

